package case1.factory;

import case1.Quackable;
import case1.duck.DuckCall;
import case1.duck.MallardDuck;
import case1.duck.RedheadDuck;
import case1.duck.RubberDuck;

/**
 * description:
 *
 * @author Yuanml on 2020/10/30 14:39
 */
public class DuckFactory extends AbstractDuckFactory{
    @Override
    public Quackable createMallardDuck() {
        return new MallardDuck();
    }

    @Override
    public Quackable createRedheadDuck() {
        return new RedheadDuck();
    }

    @Override
    public Quackable createDuckCall() {
        return new DuckCall();
    }

    @Override
    public Quackable createRubberDuck() {
        return new RubberDuck();
    }
}
